const Vue = require("../common/vue");
let order_service = require("../../service/order-service");
let _util = require('../../util/util');
require('../common/header/index')
require('../common/sidebar/index')
let receiving_table = new Vue({
    el: "#receiving-table",
    data() {
        return {
            receivings: []
        }
    },
    methods: {
        getReceivings: function(_this){
            order_service.getReceivings(function(res) {
                _this.receivings = res;
            }, function(err) {
                console.log(err);
            });
        }
    },
    created: function(){
        this.getReceivings(this);
    }
});
